-- GENERATED SPELL FOR [Black Slayer] --


function spell0_5982(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5982', 0, 1)
end

function Sorts_5982(pUnit, Event)
local choix_sorts_5982 = math.random(0, 0)
if choix_sorts_5982 == 0 then
pUnit:RegisterEvent('spell0_5982', 1, 1)
end
end

function mob5982_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5982', math.random(1500, 3000), 1)
end

function mob5982_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5982_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5982_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5982, 1, 'mob5982_Action')
RegisterUnitEvent(5982, 2, 'mob5982_Leave')
RegisterUnitEvent(5982, 3, 'mob5982_Kill')
RegisterUnitEvent(5982, 4, 'mob5982_Die')
